<HTML>
<HEAD>
<meta charset="UTF-8">
<title>RecyclerViewItemDecoration - commons/ui</title>
<link rel="stylesheet" href="../../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">commons/ui</a>&nbsp;/&nbsp;<a href="../index.html">com.vmadalin.commons.ui.recyclerview</a>&nbsp;/&nbsp;<a href="./index.html">RecyclerViewItemDecoration</a><br/>
<br/>
<h1>RecyclerViewItemDecoration</h1>
<code><span class="keyword">class </span><span class="identifier">RecyclerViewItemDecoration</span>&nbsp;<span class="symbol">:</span>&nbsp;<span class="identifier">ItemDecoration</span></code>
<p>Simple item decoration allows the application to add a special drawing and layout offset
to specific item views from the adapter's data set. Support the grid and linear layout.</p>
<p><strong>See Also</strong><br/>
<p><a href="#">RecyclerView.ItemDecoration</a></p>
</p>
<h3>Constructors</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="-init-.html">&lt;init&gt;</a></h4>
</td>
<td>
<p>Simple item decoration allows the application to add a special drawing and layout offset
to specific item views from the adapter's data set. Support the grid and linear layout.</p>
<code><span class="identifier">RecyclerViewItemDecoration</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.commons.ui.recyclerview.RecyclerViewItemDecoration$<init>(kotlin.Int)/spacingPx">spacingPx</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">)</span></code></td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="get-item-offsets.html">getItemOffsets</a></h4>
</td>
<td>
<p>Retrieve any offsets for the given item.</p>
<code><span class="keyword">fun </span><span class="identifier">getItemOffsets</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.commons.ui.recyclerview.RecyclerViewItemDecoration$getItemOffsets(android.graphics.Rect, android.view.View, androidx.recyclerview.widget.RecyclerView, androidx.recyclerview.widget.RecyclerView.State)/outRect">outRect</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/graphics/Rect.html"><span class="identifier">Rect</span></a><span class="symbol">, </span><span class="identifier" id="com.vmadalin.commons.ui.recyclerview.RecyclerViewItemDecoration$getItemOffsets(android.graphics.Rect, android.view.View, androidx.recyclerview.widget.RecyclerView, androidx.recyclerview.widget.RecyclerView.State)/view">view</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/view/View.html"><span class="identifier">View</span></a><span class="symbol">, </span><span class="identifier" id="com.vmadalin.commons.ui.recyclerview.RecyclerViewItemDecoration$getItemOffsets(android.graphics.Rect, android.view.View, androidx.recyclerview.widget.RecyclerView, androidx.recyclerview.widget.RecyclerView.State)/parent">parent</span><span class="symbol">:</span>&nbsp;<span class="identifier">RecyclerView</span><span class="symbol">, </span><span class="identifier" id="com.vmadalin.commons.ui.recyclerview.RecyclerViewItemDecoration$getItemOffsets(android.graphics.Rect, android.view.View, androidx.recyclerview.widget.RecyclerView, androidx.recyclerview.widget.RecyclerView.State)/state">state</span><span class="symbol">:</span>&nbsp;<span class="identifier">State</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
